{% load trix_translations i18n %}

{% get_language_info for LANGUAGE_CODE as lang %}

{% if pillar.image_url != None %}
<img id="pillar-profile-image" src="{{ pillar.image_url }}" alt="{{ pillar }}">
{% endif %}
<span id="pillar-profile-name">{{ pillar }}</span>
<br>
{% if pillar.state|lower = 'defected' %}
	{% translate "node_page_defected" %} <span id="pillar-profile-def-date">({{ pillar.defection_date }})</span><br>
{% endif %}
{% if pillar.state|lower = 'active' %}
	{% translate "node_page_supporter" %}<br>
{% endif %}
{% if pillar.state|lower = 'inactive' %}
	{% translate "node_page_inactive_supporter" %}<br>
{% endif %}
{% if pillar.state|lower = 'deceased' %}
	{% translate "node_page_dead" %}<br>
{% endif %}
<br><span id="pillar-profile-long-descr">{{ pillar.long_description|linebreaks }}</span><br>

{% if pillar.context_url and pillar.defection_url != pillar.context_url %}
		{% if LANGUAGE_CODE = "ar" %}
			{% if pillar.context_url_ar %}
				<br><a target="_blank" href="{{ pillar.context_url_ar }}">{% translate "node_page_context_url" %}</a>
			{% endif %}
		{% endif %}
		{% if LANGUAGE_CODE = "en" %}
			{% if pillar.context_url_en %}
				<br><a target="_blank" href="{{ pillar.context_url_en }}">{% translate "node_page_context_url" %}</a>
			{% endif %}
		{% endif %}
{% endif %}

{% if pillar.defection_url %}
	<br><a target="_blank" href="{{ pillar.defection_url }}">{% translate "node_page_defection_url" %}</a>
{% endif %}

{% if pillar.context_youtube_id %}
  <div id="youtube_embeded_reference">
	<iframe width="420" height="315" src="http://www.youtube.com/embed/{{ pillar.context_youtube_id }}" frameborder="0" allowfullscreen></iframe>
  </div>
{% endif %}
